package com.ph.custom.processor.handler;

import java.lang.reflect.Method;

import com.ph.custom.annotation.MemberCache;
import com.ph.custom.annotation.Token;
import com.ph.custom.processor.UserCacheAnnotationProcessor;
/**
 * 
 * @ClassName:  AnnotationProcessorHandler   
 * @Description:注解处理  
 * @author: lijie
 * @date:   2017年4月16日 下午3:07:33     
 * @Copyright: 2017
 */
public class AnnotationProcessorHandler implements UserCacheAnnotationProcessor {

	@Override
	public MemberCache userAnnotationProcessor(Method method) {
		if (method != null) {
			return method.getAnnotation(MemberCache.class);
		}
		return null;
	}

	@Override
	public Token tokenCheckannotationProcessor(Method method) {
		if (method != null) {
			return method.getAnnotation(Token.class);
		}
		return null;
	}
}
